/*
 *  rb_error_checking.h
 *  DeferredLighting
 *
 *  Created by Holmes Futrell on 2/8/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef RB_ERROR_CHECKING
#define RB_ERROR_CHECKING

#import "platform.h"

#define rb_check_error( s ) inner_rb_check_error( __FILE__, __LINE__, s )
#define rb_check_error_simple() inner_rb_check_error( __FILE__, __LINE__, NULL )

GLenum inner_rb_check_error( const char *file, int line, const char *s );
const char *rbunny_err_to_string(GLenum errorCode);

const char *rbunny_framebuffer_status_to_string(GLenum fbstatus);

#endif